package cn.hbads.version.domain.version.event;

import cn.hbads.version.domain.version.aggregate.DataVersion;
import cn.hbads.version.domain.version.aggregate.DataVersionChain;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * <b>数据版本链变更事件</b>
 *
 * @author yvvb
 * @date 2025/5/5
 */
public abstract class DataVersionChainEvent<T, E extends DataVersion<T>, C extends DataVersionChain<T, E>> extends ApplicationEvent {
    @Getter
    private final C dataVersionChain;

    public DataVersionChainEvent(C dataVersionChain) {
        super(dataVersionChain);
        this.dataVersionChain = dataVersionChain;
    }
}
